/*
 *
 * Copyright (C) 2019 Zealcomm Inc. (https://www.zealcomm.com)
 *
*/
#ifndef IRTC_BASE_OBJC_IRTCVIDEORENDERER_H_
#define IRTC_BASE_OBJC_IRTCVIDEORENDERER_H_

#import <Foundation/Foundation.h>
#import <IRTC/IRTCMacros.h>
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#endif

NS_ASSUME_NONNULL_BEGIN

IRTC_OBJC_EXPORT
@protocol IRTCVideoRenderer <NSObject>

/** The size of the frame. */
- (void)setSize:(CGSize)size;

/** The frame to be displayed. */
- (void)renderFrame:(nullable NSObject *)frame;

@end

IRTC_OBJC_EXPORT
@protocol IRTCVideoViewDelegate

- (void)videoView:(id<IRTCVideoRenderer>)videoView didChangeVideoSize:(CGSize)size;

@end

NS_ASSUME_NONNULL_END
#endif // IRTC_BASE_OBJC_IRTCVIDEORENDERER_H_